package com.dao;

import com.domain.Good;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.*;

@Repository
public interface IGoodDao {

    @Select("SELECT * FROM good")
    public List<Good> findAllGood();

    @Select("SELECT * FROM good WHERE gid=#{gid}")
    public Good findOneGood(Good good);

    @Select("SELECT * FROM good WHERE cid=#{cid}")
    public List<Good> findGoodByType(Good good);

}
